package day07;

/**
 * Created by Shinelon on 2016/9/20.
 */
public class NYYH extends ATM {
    public NYYH(){
        setName("农业银行");
        setMenu("4，交物业费");
    }

    @Override
    public  void  other(Card card){
        if (card instanceof NYYHCard){
            System.out.println("请输入要交的物业费");
            int read =scan.nextInt();
            card.setBalance(card.getBalance()-read);
        }else {
            System.out.println("暂不支持该功能");
        }

    }
}
